<?php


//	namespace nz\co\gravitate\FTAWebServices;
	
	
	
	function fta_randomOrgRandomPassword($num=1, $len=8, $digits = true, $upperalpha=true, $loweralpha=true){
		return trim(@file_get_contents('http://www.random.org/strings/?num=' .$num . '&len=' .$len. ($digits ? '&digits=on' : '') . ($upperalpha ? '&upperalpha=on' : '' ) . ($loweralpha ?'&loweralpha=on' : '') . '&unique=on&format=plain&rnd=new'));		
	}
	 
	
	function fta_randomOrgSeedRandom(){
		$seed =  trim(@file_get_contents('http://www.random.org/integers/?num=1&min=100000000&max=1000000000&format=plain&rnd=new&col=1&base=10'));
		mt_srand( $seed );
		srand( $seed );		
	}